<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>下载页</title>
  <#include "/include/layui-top.html">
  <style>
  .layui-layer-page .layui-layer-content { overflow: visible !important; }
  </style>
</head>
<body style='overflow: scroll;overflow:hidden'>
<form class="layui-form layui-card-body" action="javascript:void(0);">
  <div class="layui-form-item">
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="phone" name="phone" autocomplete="off" placeholder="gid" />
    </div>
    <div class="layui-inline">
    	<div class="layui-btn-group">
    		<button class="layui-btn" lay-submit lay-filter="search-opt">查询</button>
    	</div>
    </div>
  </div>
  <table id="table" lay-size="sm" class="layui-hide" lay-filter="table"></table>
</form>
<#include "/include/layui-end.html">
<script type="text/html" id="toolbar">
  <div class="layui-btn-group">
    <button class="layui-btn layui-btn-sm" lay-on="addData-opt">
	  <i class="layui-icon">&#xe654;</i> 新增
	</button>
    <button class="layui-btn layui-btn-sm" lay-on="setting-opt">
	  <i class="layui-icon">&#xe620;</i> 选项
	</button>
	<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="batch-del-opt">
	  <i class="layui-icon">&#xe640;</i> 批量删除
	</button>
  </div>
  <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="refresh-opt">
	<i class="layui-icon">&#xe669;</i> 刷新
  </button>
</script>
<script type="text/html" id="optbar">
  <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="view-opt">查看</a>
  <a class="layui-btn layui-btn-xs" lay-event="edit-opt">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del-opt">删除</a>
</script>
<script>
	layui.config({
		base: '/components/app/boss/download/'
	}).use(['download']);
</script>
</body>
<!-- 下载窗口开始 -->
<div id="add-windows" style="display: none;">
	<form class="layui-form layui-fluid" id="win-form" lay-filter="win-form" action="javascript:;">
	    <input type="hidden" id="id-win" name="id"  autocomplete="off" />
	    <div class="layui-form-item">
            <label class="layui-form-label">下载地址</label>
            <div class="layui-input-block">
                <textarea id="magnet-win" name="magnet" placeholder="下载地址" class="layui-textarea" autocomplete="off"></textarea>
            </div>
	    </div>
		<input id="win-submit" lay-submit lay-filter="add-download" hidden="true"/>
	</form>
</div>
<!-- 下载窗口结束 -->
<div id="setting-windows" style="display: none;">
    <form class="layui-form layui-fluid" id="win-form" lay-filter="win-form" action="javascript:;">
        <input type="hidden" id="id-win" name="id"  autocomplete="off" />
        <div class="layui-form-item">
            <label class="layui-form-label"><a href="https://github.com/ngosang/trackerslist/blob/master/trackers_best_ip.txt" target="_blank">bt-tracker</a></label>
            <div class="layui-input-block">
                <textarea id="bt-tracker-win" name="bt-tracker" placeholder="bt-tracker" class="layui-textarea" autocomplete="off"></textarea>
            </div>
        </div>
        <input id="win-submit" lay-submit lay-filter="add-download" hidden="true"/>
    </form>
</div>
</html>